import {apiRequestList} from "@/common/axios"
import tool from "@/common/tool"
let userMess = JSON.parse(tool.getStorage('userMess'))
let userMessObj = {
  appId: userMess.appId
}
// 文章管理
export const articleList = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/info/list', Object.assign({}, userMessObj, params))
};
//文章标签
export const articleNote = (params)=>apiRequestList.$post('/dt-business/customer/getLabelCategory', Object.assign({}, userMessObj, params))
// 文章审核
export const articleAuditList = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/info/list/audit/info', Object.assign({}, userMessObj, params))
};
// 问答管理
export const faqsList = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/faqs/info/list', Object.assign({}, userMessObj, params))
};
// 问答审核
export const faqsAuditList = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/faqs/info/list/audit/info', Object.assign({}, userMessObj, params))
};
// 楼盘列表
export const buildingList = (params)=>{
  return apiRequestList.$post('/dt-business/building/agg/basedata', params)
};
// 标准问答-新增标准问答
export const faqsCreate = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/faqs/info/create', Object.assign({}, userMessObj, params, {createrId: userMess.userId}))
};
// 标准问答-文章详情
export const faqsGetDetails = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/faqs/info/get', Object.assign({}, userMessObj, params))
};
// 标准问答-修改标准问答
export const faqsUpdate = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/faqs/info/update', Object.assign({}, userMessObj, params, {updaterId: userMess.userId}))
};
// 用户列表
export const getByAdviser = (params)=>{
  return apiRequestList.$post('/dt-business/user/aggs/user/list', Object.assign({}, userMessObj, params, {userId: userMess.userId}))
};
// 城市信息列表
export const cityBaseList = (params)=>{
  return apiRequestList.$post('/dt-business/base/city/list', Object.assign({}, userMessObj, params))
};
// 文章信息-新增
export const articleCreate = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/info/create', Object.assign({}, userMessObj, params, {createrId: userMess.userId, updaterId: userMess.userId}))
};
// 文章信息-修改
export const articleUpdate = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/info/update', Object.assign({}, userMessObj, params, {updaterId: userMess.userId}))
};
// 文章信息-详情
export const articleGet = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/info/get', Object.assign({}, userMessObj, params))
};
// 文章信息-删除
export const articleDelete = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/info/delete', Object.assign({}, userMessObj, params))
};
// 文章信息-查看驳回原因
export const articleReason = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/info/article/rebut/reason', Object.assign({}, userMessObj, params))
};
// 问答管理-删除
export const faqsDelete = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/faqs/info/delete', Object.assign({}, userMessObj, params))
};
// 问答管理-查看驳回原因
export const faqsReason = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/faqs/info/question-answer/rebut-reason', Object.assign({}, userMessObj, params))
};
// 文章审核  根据articleId 通过审核或驳回
export const articleRebut = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/info/article/pass/rebut', Object.assign({}, params, {auditPersonId: userMess.userId}))
};
// 问答审核  根据主键Id 通过审核或驳回
export const faqsRebut = (params)=>{
  return apiRequestList.$post('/dt-business/article/manager/faqs/info/question-answer/pass-rebut', Object.assign({}, params, {auditPersonId: userMess.userId}))
};

